package zut.edu.cn.concertticketmanagementsystem.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;
import zut.edu.cn.concertticketmanagementsystem.enums.OrderStatusEnum;
import zut.edu.cn.concertticketmanagementsystem.enums.PayStatusEnum;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: heroma
 * Date: 5/28/19
 * Time: 8:41 PM
 * Description: No Description
 */
@Entity
@Data
@DynamicUpdate
public class OrderForm implements Serializable {
    @Id

    private String orderId;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;
    //订单状态默认为新创建的订单
    private Integer orderStatus= OrderStatusEnum.NEW.getCode();
    //支付状态，默认为未支付
    private Integer payStatus= PayStatusEnum.WAIT.getCode();
    //买家姓名
    private String buyerName;
    //订单总金额
    private BigDecimal orderAmount;
    //数量
    private int ticketQuantity;
    //买家电话
    private String buyerPhone;

}
